<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.sf.net/frails" prefix="fr"%>

<f:view>
	<h:form>
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
			<head>
				<meta http-equiv="pragma" content="no-cache" />
				<meta http-equiv="cache-control" content="no-cache" />
				<meta http-equiv="expires" content="0" />
				<link href="../css/iframe.css" rel="stylesheet" type="text/css" />
			</head>
			<body>
				<div id="container">
					<div class="titles">
						已审核 CP 用户
					</div>

					<h:dataTable value="#{$.cps}" var="user" columnClasses="colClass1,colClass2" styleClass="tables">
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_user_userId}" />
							</f:facet>
							<h:outputText value="#{user.userId}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_user_loginName}" />
							</f:facet>
							<h:outputText value="#{user.loginName}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_user_userName}" />
							</f:facet>
							<h:outputText value="#{user.userName}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_user_email}" />
							</f:facet>
							<h:outputText value="#{user.email}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_user_phone}" />
							</f:facet>
							<h:outputText value="#{user.phone}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_user_userRole}" />
							</f:facet>
							<h:outputText value="#{user.userRole}" />
						</h:column>

						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_show_user_detail}" />
							</f:facet>
							<h:commandButton action="#{$.detail}" value="#{$bundle.label_show_user_detail}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{$bundle.label_delete_user}" />
							</f:facet>
							<h:commandButton actionListener="#{$.delete}" value="#{$bundle.label_delete_user}" />
						</h:column>
					</h:dataTable>

				</div>
			</body>
		</html>
	</h:form>
</f:view>